<script setup>
import FamilyMemberManagement from './components/FamilyMemberManagement.vue'
import WeatherForecast from './components/WeatherForecast.vue'
import AirConditionerControl from './components/AirConditionerControl.vue'
import KitchenMonitor from './components/KitchenMonitor.vue'
</script>

<template>
  <div class="app-container">
    <header>
      <h1>Smart Home System</h1>
    </header>

    <main>
      <div class="dashboard">
        <div class="card">
          <FamilyMemberManagement />
        </div>

        <div class="card">
          <WeatherForecast />
        </div>

        <div class="card">
          <AirConditionerControl />
        </div>

        <div class="card">
          <KitchenMonitor />
        </div>
      </div>
    </main>

    <footer>
      <p>© 2025 Smart Home System. All rights reserved.</p>
    </footer>
  </div>
</template>

<style scoped>
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #2c3e50;
  font-size: 32px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #7f8c8d;
}
</style>
